﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections.ObjectModel;

namespace SmallTfs
{
    public static class Extension
    {
        public static ObservableCollection<TaskItem> ToObservableCollection(this List<TaskItem> list)
        {
            ObservableCollection<TaskItem> retVal = new ObservableCollection<TaskItem>();
            foreach (var o in list)
            {
                retVal.Add(o);
            }

            return retVal;
        }


    }
}
